import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/newverify' // 添加重定向
  },
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/verificationCode',
    name: 'verificationCode',
    component: () => import(/* webpackChunkName: "about" */ '../views/VerificationCode.vue')
  },
  {
    path: '/newverify',
    name: 'newverify',
    component: () => import(/* webpackChunkName: "about" */ '../views/NewVerify.vue')
  },

  

]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
